package com.manager.entity;

import java.util.Date;

public class Petrelease {
    private Integer petid;

    private String storeid;

    private Date releasetime;


    /*真的需要空构造体 否则报错 */
    public Petrelease() {
    }

    /*插入使用，petid自动生成releasetime也是自动生成 这个表只记录商店和生成的宠物id，附带时间。*/
    public Petrelease(String storeid) {
        this.storeid = storeid;
    }

    /*没有构造体报错。对应的构造体给Mybatis调用。（查询使用）*/
    public Petrelease(Integer petid, String storeid, Date releasetime) {
        this.petid = petid;
        this.storeid = storeid;
        this.releasetime = releasetime;
    }

    public Integer getPetid() {
        return petid;
    }

    public void setPetid(Integer petid) {
        this.petid = petid;
    }

    public String getStoreid() {
        return storeid;
    }

    public void setStoreid(String storeid) {
        this.storeid = storeid == null ? null : storeid.trim();
    }

    public Date getReleasetime() {
        return releasetime;
    }

    public void setReleasetime(Date releasetime) {
        this.releasetime = releasetime;
    }
}